import request from '../utils/request'
import qs from "qs"

export let getCidApi = (params) => request({
    url: "/classify/list",
    method: "get",
    params,
    baseURL: "http://localhost:2000"
})

export let delListApi = (params) => request({
    url: "/classify/delList",
    method: "get",
    params,
    baseURL: "http://localhost:2000"
})

export let updateListApi = (data) => request({
    url: "/classify/updateList",
    method: "post",
    data: qs.stringify({ ...data }),
    baseURL: "http://localhost:2000"
})

export let addListApi = (data) => request({
    url: "/classify/addList",
    method: "post",
    data: qs.stringify({ ...data }),
    baseURL: "http://localhost:2000"
})
